body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: #f7f8fa;
  margin: 0;
  min-width: 340px;
  min-height: 450px;
}
#app {
  padding: 16px 14px 14px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 380px;
  margin-bottom: 16px;
  padding: 0 2px;
}
.header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}
.account-list {
  width: 100%;
  max-width: 380px;
  margin-bottom: 12px;
}
.account-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  padding: 14px 16px;
  margin-bottom: 12px;
  transition: all 0.3s ease;
  border: 1px solid rgba(0,0,0,0.04);
}
.account-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transform: translateY(-1px);
}
.account-header {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 2px;
}
.account-name {
  font-weight: 600;
  font-size: 1.1em;
  color: #2c3e50;
  word-break: break-all;
  line-height: 1.3;
  flex-shrink: 1;
  min-width: 0;
}
.account-type {
  font-size: 0.75em;
  color: #7f8c8d;
  background: #ecf0f1;
  padding: 2px 6px;
  border-radius: 10px;
  display: inline-block;
  font-weight: 500;
  letter-spacing: 0.3px;
  flex-shrink: 0;
  white-space: nowrap;
}
.account-main {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 6px;
}
.otp-code {
  font-family: 'Monaco', 'Menlo', 'Consolas', monospace;
  color: #2d8cf0;
  margin: 0;
  transition: all 0.2s ease;
  user-select: all;
}
.otp-code:hover {
  color: #1e6bb8;
  transform: scale(1.02);
}
.otp-timer, .otp-counter {
  margin: 0;
}
.otp-timer {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #e1f5fe;
  color: #0277bd;
  font-size: 0.8em;
  font-weight: 600;
}
.otp-counter {
  font-size: 0.8em;
  color: #666;
  font-weight: 500;
  padding: 2px 8px;
  background: #f5f5f5;
  border-radius: 12px;
}
.add-btn {
  background: #2d8cf0;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 0.85em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(45, 140, 240, 0.2);
  min-width: 80px;
}
.add-btn:hover {
  background: #1765ad;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(45, 140, 240, 0.3);
}
.primary-btn {
  background: #2d8cf0;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s;
  width: 100%;
  max-width: 380px;
}
.primary-btn:hover {
  background: #1765ad;
}
.secondary-btn {
  background: #f0f0f0;
  color: #333;
  border: none;
  border-radius: 6px;
  padding: 8px 18px;
  font-size: 1em;
  cursor: pointer;
  margin-left: 8px;
}
.modal-mask {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.modal {
  background: #fff;
  border-radius: 10px;
  padding: 24px 20px 16px 20px;
  min-width: 260px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}
.modal input, .modal select {
  width: 100%;
  margin-bottom: 12px;
  padding: 8px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  font-size: 1em;
}
.modal-actions {
  text-align: right;
}
/* 按钮hover效果 */
.edit-btn:hover, .delete-btn:hover {
  background: #f0f0f0 !important;
  color: #333 !important;
  transform: scale(1.1);
}

/* 密码显示/隐藏按钮样式 */
.toggle-password-btn:hover {
  background: rgba(0,0,0,0.1) !important;
  transform: scale(1.1);
}

/* 响应式设计 */
@media (max-width: 360px) {
  .add-btn {
    font-size: 0.8em;
    padding: 5px 10px;
    min-width: 70px;
  }
  .header-left h2 {
    font-size: 1.2em !important;
  }
} 